package com.example.demo.VO;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.example.demo.Excel.ExcelColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hanfei
 * @since 2020-04-08
 */
@TableName("t_d_permissions")
@ApiModel("权限")
public class PermissionsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId("id")
    @ApiModelProperty(value = "编号")
    @ExcelColumn(value = "编号",col = 1)
    private String id;
    /**
     * 资源名
     */
    @TableField("permissionsname")
    @ApiModelProperty(value = "资源名")
    @ExcelColumn(value = "资源名",col = 2)
    private String permissionsname;
    /**
     * 父级id
     */
    @TableField("pid")
    @ApiModelProperty(value = "父级id")
    @ExcelColumn(value = "父级id",col = 3)
    private String pid;
    /**
     * 资源地址
     */
    @TableField("url")
    @ApiModelProperty(value = "资源地址")
    @ExcelColumn(value = "资源地址",col = 4)
    private String url;
    /**
     * 标记
     */
    @TableField("flag")
    @ApiModelProperty(value = "标记",example = "1")
    private Integer flag;

    @ApiModelProperty(value = "子级菜单")
    private List<PermissionsVO> childTDPermissions;

    public List<PermissionsVO> getChildTDPermissions() {
        return childTDPermissions;
    }

    public void setChildTDPermissions(List<PermissionsVO> childTDPermissions) {
        this.childTDPermissions = childTDPermissions;
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPermissionsname() {
        return permissionsname;
    }

    public void setPermissionsname(String permissionsname) {
        this.permissionsname = permissionsname;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Permissions{" +
        "id=" + id +
        ", permissionsname=" + permissionsname +
        ", pid=" + pid +
        ", url=" + url +
        ", flag=" + flag +
        "}";
    }
}
